<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="lg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="lg2"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/bootstrap.min.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/font.css">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/xadmin.css">
<script type="text/javascript"
	src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/lib/layui/layui.js"
	charset="utf-8">
	
</script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/js/xadmin.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/js/cookie.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<div class="x-nav">
		增加合同 <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			href="javascript:location.replace(location.href);" title="刷新">刷新</a>
		<a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			href="${pageContext.request.contextPath}/contracts/list" title="返回">返回</a>
	</div>
	<form class="form-horizontal" role="form"
		action="${pageContext.request.contextPath}/contracts/addOne"
		method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="contract_code" class="col-sm-2 control-label">选择员工</label>
			<div class="col-sm-5">
				<select class="form-control" name="id">
					<option value="">请选择</option>
					<lg:forEach items="${staffList}" var="staff">
						<option value="${staff.id}">${staff.staff_name}</option>
					</lg:forEach>

				</select>
			</div>
		</div>
		<div class="form-group">
			<label for="contract_code" class="col-sm-2 control-label">合同编号</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="contract_code" placeholder="合同编号" />
			</div>
		</div>
		<div class="form-group">
			<label for="contract_name" class="col-sm-2 control-label">合同名称</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="contract_name" placeholder="合同名称" />
			</div>
		</div>
		<div class="form-group">
			<label for="contract_time" class="col-sm-2 control-label">合同期限</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="contract_time" placeholder="合同期限/年" />
			</div>
		</div>

		<div class="form-group">
			<label for="contract_post" class="col-sm-2 control-label">职务</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="contract_post" placeholder="签约职务" />
			</div>
		</div>

		<div class="form-group">
			<label for="signing_time" class="col-sm-2 control-label">签约时间</label>
			<div class="col-sm-5">
				<input type="date" class="form-control" name="signing_time" />
			</div>
		</div>

		<div class="form-group">
			<label for="use_time" class="col-sm-2 control-label">试用期限</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="use_time" placeholder="试用期限/月" />
			</div>
		</div>
		<div class="form-group">
			<label for="use_money" class="col-sm-2 control-label">试用薪资</label>
			<div class="col-sm-5">
				<input type="text" class="form-control" name="use_money" placeholder="试用薪资/元" />
			</div>
		</div>

		<div class="form-group">
			<label for="contract_start" class="col-sm-2 control-label">合同生效日期</label>
			<div class="col-sm-5">
				<input type="date" class="form-control" name="contract_start" />
			</div>
		</div>
		<div class="form-group">
			<label for="contract_end" class="col-sm-2 control-label">合同到期日期</label>
			<div class="col-sm-5">
				<input type="date" class="form-control" name="contract_end" />
			</div>
		</div>

		<div class="form-group">
			<label for="formal_time" class="col-sm-2 control-label">转正日期</label>
			<div class="col-sm-5">
				<input type="date" class="form-control" name="formal_time" />
			</div>
		</div>

		<div class="form-group">
			<label for="contract_file" class="col-sm-2 control-label">上传文件</label>
			<div class="col-sm-5">
				<input type="file" name="myContract" />
			</div>
		</div>

		<div class="form-group">
			<label for="inputEmail3" class="col-sm-2 control-label"></label>
			<div class="col-sm-5">
				<!--隐藏域  -->
				<input type="Hidden" name="contract_id"> 
				<input type="submit" class="btn btn-info" value="保存" /> 
			 	<input type="reset" class="btn btn-info" value="取消" />
			</div>
		</div>

	</form>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/static/js/jquery-1.12.3.min.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>

</body>
</html>